{include file="public/header" /}
<style type="text/css">
/* TAB */
.nav-tabs.nav>li>a {
    padding: 10px 25px;
    margin-right: 0;
}
.nav-tabs.nav>li>a:hover,
.nav-tabs.nav>li.active>a {
    border-top: 3px solid #1ab394;
    padding-top: 8px;
    border-bottom: 1px solid #FFFFFF;
}
.nav-tabs>li>a {
    color: #A7B1C2;
    font-weight: 500;  
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 0;
}
.layui-form-item .layui-input-inline{
    width: 300px;
}
</style>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>网站配置</h5>
                </div>
                <div class="ibox-content">       
                    <div class="panel blank-panel">
                        <div class="panel-heading">                     
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">基本配置</a></li>
                                    <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">内容配置</a></li>
                                    <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">系统配置</a></li>
                                    <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">短信配置</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel-body">
                            <div class="tab-content">
                                <div id="tab-1" class="tab-pane active">
                                    <form action="{:url('save')}" method="post" class="layui-form layui-form-pane">  
                                        <div class="hr-line-dashed"></div>                                
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站标题：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[web_site_title]" value="{$config.web_site_title}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 网站标题</div>
                                        </div>                                 
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站描述：</label>
                                            <div class="layui-input-inline">
                                                <textarea class="layui-textarea" type="text" rows="3" name="config[web_site_description]">{$config.web_site_description}</textarea>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 网站搜索引擎描述</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站关键字：</label>
                                            <div class="layui-input-inline">
                                                <textarea class="layui-textarea" type="text" rows="3" name="config[web_site_keyword]">{$config.web_site_keyword}</textarea>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 网站搜索引擎关键字</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站备案号：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[web_site_icp]" value="{$config.web_site_icp}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 设置在网站底部显示的备案号，如“ 陇ICP备15002349号-1</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">统计代码：</label>
                                            <div class="layui-input-inline">
                                                <textarea class="layui-textarea" type="text" rows="3" name="config[web_site_cnzz]">{$config.web_site_cnzz}</textarea>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 设置在网站底部显示的站长统计信息</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">版权信息：</label>
                                            <div class="layui-input-inline">                                              
                                                <textarea class="layui-textarea" type="text" rows="3" name="config[web_site_copy]">{$config.web_site_copy}</textarea>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 设置在网站底部显示的版权信息</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">站点状态：</label>
                                            <div class="layui-input-inline">
                                                    <input type="radio" name='config[web_site_close]' value="1" {if condition="$config['web_site_close'] eq 1 "}checked{/if}  title="开启"/>&nbsp;&nbsp;
                                                    <input type="radio" name='config[web_site_close]' value="0" {if condition="$config['web_site_close'] eq 0 "}checked{/if} title="关闭"/>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 站点关闭后除管理员外所有人访问不了后台</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <div class="col-sm-4 col-sm-offset-3">
                                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存信息</button>&nbsp;&nbsp;&nbsp;
                                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                                            </div>
                                        </div>                               
                                    </form>
                                </div>
                                <div id="tab-2" class="tab-pane">
                                    <form action="{:url('save')}" method="post" class="layui-form layui-form-pane">  
                                        <div class="hr-line-dashed"></div>                                
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">每页记录数：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[list_rows]" value="{$config.list_rows}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 后台数据每页显示记录数</div>
                                        </div>                                 
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <div class="col-sm-4 col-sm-offset-3">
                                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存信息</button>&nbsp;&nbsp;&nbsp;
                                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                                            </div>
                                        </div>                               
                                    </form>
                                </div>
                                <div id="tab-3" class="tab-pane">
                                    <form action="{:url('save')}" method="post" class="layui-form layui-form-pane">                             
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">禁止后台访问IP：</label>
                                            <div class="layui-input-inline">
                                                <textarea class="layui-textarea" type="text" rows="3" name="config[admin_allow_ip]">{$config.admin_allow_ip}</textarea>
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 多个用#号分隔，如果不配置表示不限制IP访问</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <div class="col-sm-4 col-sm-offset-3">
                                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存信息</button>&nbsp;&nbsp;&nbsp;
                                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                                            </div>
                                        </div>                               
                                    </form>
                                </div>
                                <div id="tab-4" class="tab-pane">
                                    <form action="{:url('save')}" method="post" class="layui-form layui-form-pane">  
                                        <div class="hr-line-dashed"></div>                                
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">AppKey：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[alisms_appkey]" value="{$config.alisms_appkey}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 请前往阿里云云通信平台查看AppKey</div>
                                        </div>                                 
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">AppSecret：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[alisms_appsecret]" value="{$config.alisms_appsecret}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 请前往阿里云云通信平台查看AppSecret</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">短信签名：</label>
                                            <div class="layui-input-inline">                                              
                                                <input type="text" class="layui-input" name="config[alisms_signname]" value="{$config.alisms_signname}">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux"><i class="fa fa-info-circle"></i> 请前往阿里云云通信平台查看短信签名</div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="layui-form-item">
                                            <div class="col-sm-4 col-sm-offset-3">
                                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存信息</button>&nbsp;&nbsp;&nbsp;
                                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                                            </div>
                                        </div>                               
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>         
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}

</body>
</html>
